package tech.aistar.corejava.day05.HomeWork.Bank;

/**
 * Created by 李雨昂 on 2019/7/20.
 */
public class Test {
    public static void main(String[] args) {

//        Account acc1 = new Account(123456789,"lya",123,
//                "15776547821",10000,0);
//        Account acc2 = new Account(987654321,"tom",456,
//                "18814642418",4567,1);

        /*Account[] account = new Account[2];
        account[0] = acc1;
        account[1] = acc2;

        for (Account account1 : account) {
            System.out.println(account1);
        }*/


        Account acc1 = new Account(123456789,"lya",123,
               "15776547821",10000,0);
        Account acc2 = new Account(987654321,"tom",456,
                "18814642418",4567,1);
        Operation.depoist(acc1,1000);
        Operation.withdraw(acc2,500);

        System.out.println(acc1.toString());
        System.out.println(acc2.toString());



    }
}
